﻿<Window x:Uid="Window_1" x:Class="WgpgGUI.DialogPassphrase"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Password" SizeToContent="WidthAndHeight" xmlns:my="clr-namespace:WgpgGUI"
        WindowStartupLocation="CenterScreen"
        ResizeMode="NoResize" ShowInTaskbar="False" Icon="/WgpgCore;component/Images/passphrase.png">

    <StackPanel x:Uid="StackPanel_1" Width="400">
        <TextBlock x:Uid="description" Margin="10" Name="description" TextWrapping="Wrap" />

        <Grid x:Uid="Grid_1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="10 0 10 10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition x:Uid="ColumnDefinition_1" Width="Auto"/>
                <ColumnDefinition x:Uid="ColumnDefinition_2" Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition x:Uid="RowDefinition_1" Height="Auto"/>
                <RowDefinition x:Uid="RowDefinition_2" Height="Auto"/>
            </Grid.RowDefinitions>
        
            <Label x:Uid="label_password" Margin="0 2 0 2" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" Name="label_password" Target="{Binding}">Passphrase: </Label>
            <Label x:Uid="label_repeatpassword" Margin="0 2 0 2" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" Name="label_repeatpassword">Repeat Passphrase:</Label>

            <PasswordBox x:Uid="password" Margin="0 2 0 2" Grid.Column="1" Grid.Row="0" Name="password" PasswordChanged="PasswordChanged" VerticalAlignment="Center"/>
            <PasswordBox x:Uid="repeatpassword" Margin="0 2 0 2" Grid.Column="1" Grid.Row="1" Name="repeatpassword" PasswordChanged="PasswordChanged" VerticalAlignment="Center"/>
        </Grid>

        <my:PassphraseStrength x:Uid="passwordstrength" Strength="None" Margin="10 0 10 10" x:Name="passwordstrength"/>

        <StackPanel x:Uid="StackPanel_2" Background="#F0F0F0">
            <Border x:Uid="Border_1" BorderBrush="#DFDFE0" Height="1" BorderThickness="1"/>
            <StackPanel x:Uid="StackPanel_3" HorizontalAlignment="Right" Orientation="Horizontal">
                <Button x:Uid="button_ok" Width="Auto" Content="_Send Passphrase" IsDefault="True" IsEnabled="False" Name="button_ok" Click="SendPassword" />
                <Button x:Uid="Button_1" Width="Auto" Content="_Cancel" IsCancel="True"/>
            </StackPanel>
        </StackPanel>
    </StackPanel>
</Window>
